package com.cloud.jdkTest;

/**
 * 异常测试运行时异常能否被catch
 * https://blog.csdn.net/zipo/article/details/88525281
 */
public class ExceptionTest {
    public static void main(String[] args) {
        try {
            String str = null;
            if (str.length() > 0) {
                System.out.println("it can't happen");
            }
        } catch (Exception e) {
            e.printStackTrace();
        }

        System.out.println("I will not be terminated");
    }
}
